import {defineComponent} from "vue";
import {NLoadingBarProvider, NDialogProvider, NNotificationProvider, NMessageProvider, NWatermark,} from "naive-ui"
import DialogContent from "./dialogcontent";
import MessageContent from "./messagecontent";
import MyModelList from "../mymodel/index"

export default defineComponent({
    setup(props, {slots}) {
        return () => (
            <NLoadingBarProvider>
                <NDialogProvider>
                    <DialogContent/>
                    <NNotificationProvider>
                        <NMessageProvider>
                            <MyModelList>
                                <MessageContent/>
                                {slots.default ? slots.default() : null}
                            </MyModelList>
                        </NMessageProvider>
                    </NNotificationProvider>
                </NDialogProvider>
            </NLoadingBarProvider>
        )
    },
})
